﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model
{
    /// <summary>
    /// 用药表
    /// </summary>
    /// 

    [Table("Medication")]
    public class Medication
    {

        [Key]
         public int MedicationId {  get; set; }

        /// <summary>
        /// /药品名称
        /// </summary>
        public string MedicationName { get; set; }

        /// <summary>
        /// 科室名称
        /// </summary>
        public int DepartmentId { get; set; }

        /// <summary>
        /// 用药日期
        /// </summary>
         public DateTime MedicationDate { get; set; }=DateTime.Now;
        /// <summary>
        /// 病人名称
        /// </summary>
         public string Name { get; set; }

        /// <summary>
        /// 病房号码
        /// </summary>
        public string MedicationPhone { get; set; }

        /// <summary>
        /// 配药医生
        /// </summary>
        public string Doctor { get; set; }
        /// <summary>
        /// 状态
        /// true：已完成
        /// false:未完成
        /// </summary>
        public bool State { get; set; } = true;


        /// <summary>
        /// 删除
        /// true：已删除
        /// false:未删除
        /// </summary>
        public bool isDelete { get; set; } = true;






        

    }
}
